Fix bug when merging non-image an1 with gpx to make image an1
authorparkrrrr <parkrrrr@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 26 May 2006 23:04:36 +0000 (23:04 +0000)
committerparkrrrr <parkrrrr@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 26 May 2006 23:04:36 +0000 (23:04 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@2123 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/an1.c

index 8d603469b9d05c2b4c2f285ec94f7ef602c4460b..00e4ea73509655e0474b8f3614ddecc7a0b00448 100644 (file)
@@ -813,7 +813,7 @@ Write_One_AN1_Waypoint( const waypoint *wpt )
        rec->lon = EncodeOrd( -wpt->longitude );
        rec->serial = serial++;
        
-       if ( wpt_type_num == 0x12 ) {  /* image */
+       if ( rec->type == 0x12 ) {  /* image */
                if ( strstr( wpt->icon_descr, ":\\" )) {
                        rec->image_name = xstrdup( wpt->icon_descr );
                        rec->height = -244;